<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<p class="page">
	<a class="b bC" 
		<s:if test="%{page==1}">
		href="javascript:void(0);"
		</s:if>
		<s:else>
		href="<%=path%>?page=<s:property value='%{page-1}'/>&type=<s:property value='%{type}'/>"
		</s:else>
		>&lt;</a>
	<s:iterator  begin="1" end="%{ totalPage }" status="status">
		<s:if test="%{type==null}">
			<a <s:if test="%{page==#status.count}">class="mBC wC"</s:if><s:else>class="b bC"</s:else> href="<%=path%>?page=<s:property value='#status.count'/>"><s:property value="#status.count"/></a>
		</s:if>
		<s:else>
			<a <s:if test="%{page==#status.count}">class="mBC wC"</s:if><s:else>class="b bC"</s:else> href="<%=path%>?page=<s:property value='#status.count'/>&type=<s:property value='%{type}'/>"><s:property value="#status.count"/></a>
		</s:else>
		
	</s:iterator>
	<a <s:if test="%{page==totalPage}">
		href="javascript:void(0);"
		</s:if>
		<s:else>
		href="<%=path%>?page=<s:property value='%{page+1}'/>&type=<s:property value='%{type}'/>" 
		</s:else>
		class="b bC">&gt;</a>
	<%--<a class="mBC wC" href="javascript:void(0);">1</a>
	
	<a href="/channels/post/23/2.html" class="b bC" onfocus="this.blur()">2</a><a
		href="/channels/post/23/3.html" class="b bC" onfocus="this.blur()">3</a><a
		href="/channels/post/23/4.html" class="b bC" onfocus="this.blur()">4</a><a
		href="/channels/post/23/5.html" class="b bC" onfocus="this.blur()">5</a><span
		class="gC">...</span><a href="/channels/post/23/9.html" class="b bC"
		onfocus="this.blur()">9</a><a href="/channels/post/23/10.html"
		class="b bC" onfocus="this.blur()">10</a><a hidefocus="true"
		href="/channels/post/23/2.html" class="b bC">&gt;</a>
--%>
</p>